<template>
  <header class="header">
    <slot name="left"></slot>
    <img src="" />
    <span class="header_title">
      <span class="header_title_text ellipsis">送餐超人</span>
    </span>
    <slot name="right"></slot>
  </header>
</template>

<script>
  export default {
    props: {
      title: String
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
  .header
    background -webkit-radial-gradient(#FF4700, #DE9B22)
    background -ms-radial-gradient(#FF4700, #DE9B22)
    background -moz-radial-gradient(#FF4700, #DE9B22)
    background radial-gradient(#FF4700, #DE9B22)
    position fixed
    z-index 9999
    left 0
    top 0
    width 100%
    height 1.688rem

    .header_search
      position absolute
      left .563rem
      top 50%
      transform translateY(-50%)
      width 10%
      height 50%
      margin-top -.1rem
      .icon-sousuo
        font-size .938rem
        color #fff
    .header_title
      position absolute
      top 50%
      left 50%
      transform translate(-50%, -50%)
      width 50%
      color #fff
      text-align center
      .header_title_text
        font-size .75rem
        color #fff
        display block
    .header_login
      font-size .525rem
      color #fff
      position absolute
      right .563rem
      top 50%
      transform translateY(-50%)
      .header_login_text
        color #fff
</style>
